﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace Reportes
{
    public partial class Principal : Form
    {
        public Principal()
        {
            InitializeComponent();

        }
        private void radMenuItem2_Click(object sender, EventArgs e)
        {

        }

        private void radMenuItem3_Click(object sender, EventArgs e)
        {

            Logistica.OrdenCompraGeneral.DefInstance.MdiParent = this;
            Logistica.OrdenCompraGeneral.DefInstance.Show();
        }

        private void radMenuItem5_Click(object sender, EventArgs e)
        {
            
            Logistica.ContabilidadStock.DefInstance.MdiParent = this;
            Logistica.ContabilidadStock.DefInstance.Show();
        }

        private void radMenuItem6_Click(object sender, EventArgs e)
        {
            Logistica.ContabilidadStockResumen.DefInstance.MdiParent = this;
            Logistica.ContabilidadStockResumen.DefInstance.Show();
        }

        private void Principal_Load(object sender, EventArgs e)
        {
            if (GlobalVar.VL_PERMISO !=1)
            {
                radMenuItem6.Visibility = ElementVisibility.Hidden;
            }
        }

        private void Principal_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void radMenuItem7_Click(object sender, EventArgs e)
        {
            Logistica.LogisticaVerificador.DefInstance.MdiParent = this;
            Logistica.LogisticaVerificador.DefInstance.Show();
        }

        private void radMenuItem8_Click(object sender, EventArgs e)
        {
            Logistica.AlmacenRequerimientosPendientesAtencion.DefInstance.MdiParent = this;
            Logistica.AlmacenRequerimientosPendientesAtencion.DefInstance.Show();
        }

        private void radMenuItem10_Click(object sender, EventArgs e)
        {
            Logistica.AlmacenKardex.DefInstance.MdiParent = this;
            Logistica.AlmacenKardex.DefInstance.Show();
        }

        private void radMenuItem11_Click(object sender, EventArgs e)
        {
            Logistica.RptAlmacenIngreso.DefInstance.MdiParent = this;
            Logistica.RptAlmacenIngreso.DefInstance.Show();
        }

        private void radMenuItem12_Click(object sender, EventArgs e)
        {
            Logistica.RptAlmacenSalida.DefInstance.MdiParent = this;
            Logistica.RptAlmacenSalida.DefInstance.Show();
        }

        private void radMenuItem14_Click(object sender, EventArgs e)
        {
            Logistica.LogisticaIngresosModificar.DefInstance.MdiParent = this;
            Logistica.LogisticaIngresosModificar.DefInstance.Show();
            
        }

        private void radMenuItem18_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.Reportes.KardexValorizado.DefInstance.MdiParent = this;
            Reportes.Logistica.Reportes.KardexValorizado.DefInstance.Show();
        }

        private void radMenuItem17_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.Reportes.KardexValorizado12.DefInstance.MdiParent = this;
            Reportes.Logistica.Reportes.KardexValorizado12.DefInstance.Show();
        }

        private void radMenuItem15_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.Reportes.KardexValorizadoResumen.DefInstance.MdiParent = this;
            Reportes.Logistica.Reportes.KardexValorizadoResumen.DefInstance.Show();
        }

        private void radMenuItem19_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.Reportes.Materiales.DefInstance.MdiParent = this;
            Reportes.Logistica.Reportes.Materiales.DefInstance.Show();
        }

        private void radMenuItem20_Click(object sender, EventArgs e)
        {

        }

        private void radMenuItem21_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.LogisticaIngresosModificarExtraodinario.DefInstance.MdiParent = this;
            Reportes.Logistica.LogisticaIngresosModificarExtraodinario.DefInstance.Show();
        }

        private void radMenuItem22_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.ReporteLogisticaVerificador.DefInstance.MdiParent = this;
            Reportes.Logistica.ReporteLogisticaVerificador.DefInstance.Show();
        }

        private void radMenuItem23_Click(object sender, EventArgs e)
        {
            Reportes.Logistica.LogisticaIngresosModificarCompleto.DefInstance.MdiParent = this;
            Reportes.Logistica.LogisticaIngresosModificarCompleto.DefInstance.Show();
        }

    }
}
